package cn.stylefeng.guns.sys.modular.notice.mapper;

import cn.stylefeng.guns.sys.modular.notice.entity.DbNotice;
import cn.stylefeng.guns.sys.modular.notice.model.params.DbNoticeParam;
import cn.stylefeng.guns.sys.modular.notice.model.result.DbNoticeResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 通知中心  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-08-19
 */
public interface DbNoticeMapper extends BaseMapper<DbNotice> {

    /**
     * 获取列表
     *
     * @author author
     * @Date 2020-08-19
     */
    List<DbNoticeResult> customList(@Param("paramCondition") DbNoticeParam paramCondition);

    /**
     * 获取map列表
     *
     * @author author
     * @Date 2020-08-19
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") DbNoticeParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author author
     * @Date 2020-08-19
     */
    Page<DbNoticeResult> customPageList(@Param("page") Page page, @Param("paramCondition") DbNoticeParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author author
     * @Date 2020-08-19
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") DbNoticeParam paramCondition);


    /**
     * 查数据返对象
     */
    DbNoticeResult searchByParam(@Param("paramCondition") DbNoticeParam paramCondition);


    /**
     * 通过service_id修改信息
     */
    Integer updateByServiceId(@Param("paramCondition") DbNoticeParam paramCondition);

}
